#ifndef _METER_H_
#define _METER_H_

#include "fm33le0xx_fl.h"


uint8_t meter_UploadCheck(void);

void meter_cnt_reg_init(void);
uint32_t get_LastUploadTimestamps(void);
void save_LastUploadTimestamps(void);
void auto_meter_counter(void);
void auto_meter_debounce_counter(void);

uint32_t meter_cnt2_get(void);
void meter_cnt1_update(void);
void meter_count_value_save(uint32_t cnt1, uint32_t cnt2);
void meter_cnt2_update(void);
uint32_t meter_cnt1_get(void);
void meter_cnt1_clear(void);
void meter_cnt2_clear(void);
uint32_t meter_get_count1(void);
uint32_t meter_get_count2(void);
#endif

